package soccerBet.project.webservice;

import java.util.List;

import javax.jws.WebMethod;
import javax.jws.WebService;

import soccerBet.project.contracts.EquipaContract;
import soccerBet.project.services.EquipaService;


@WebService
public class SoccerBetWS {

    @WebMethod
    public String HelloWorld(){
        return "Hello World";
    }
    
    
    @WebMethod
    public List<EquipaContract> obtemListaEquipas(){
    	
    	EquipaService eService = new EquipaService();
    	
    	return eService.getAllEquipas();
    	
    }

}